package org.potomak.patientmanager.beans.model;

import java.io.Serializable;
import java.util.Date;

public class AttachmentBean implements Serializable {

	private int id;
	private PatientBean patient;
	private byte[] file;
	private String fileType;
	private Date date;

	public AttachmentBean() {
		patient = new PatientBean();
		file = null;
		fileType = "jpg";
		date = new Date();
	}

	public AttachmentBean(PatientBean patient, byte[] file, String fileType, Date date) {
		this.patient = patient;
		this.file = file;
		this.fileType = fileType;
		this.date = date;
	}
	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public PatientBean getPatient() {
		return patient;
	}

	public void setPatient(PatientBean patient) {
		this.patient = patient;
	}
	
	public byte[] getFile() {
		return file;
	}

	public void setFile(byte[] file) {
		this.file = file;
	}

	public String getFileType() {
		return fileType;
	}

	public void setFileType(String fileType) {
		this.fileType = fileType;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String toString() {
		return "patient: " + patient + " file type: " + fileType;
	}

}